export default class Home {
    static home=null;

    static getInstance(){
        if(this.home == null){
            this.home = new Home()
        }
        return this.home
    }
    list($http,param){
        return $http.get("systemAuthority",{params:{id:param}})
    }

    zhuxiao($router){
        $router.push("/")
    }

    upheadPortrait(fileFormData,requestConfig,$http){
        return  $http.post("file", fileFormData, requestConfig)
    }

    updateheadPortrait($http,params){
        return $http.put("systemUser/upheadPortrait",params)
    }
}